package com.joven.shelltest.dto;

import com.joven.shelltest.annotation.Sensitive;
import com.joven.shelltest.utils.desensitized.SensitiveTypeEnum;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author wzj
 * @Date 2023-09-04 09:30
 **/
@Data
public class TestUserInfoDto implements Serializable {
    private static final long serialVersionUID = -4907747933414234120L;
    @Sensitive(type = SensitiveTypeEnum.NAME)
    private String name;
    @Sensitive(type = SensitiveTypeEnum.ID_CARD)
    private String idCard;
    @Sensitive(type = SensitiveTypeEnum.PHONE_NUM)
    private String phone;
    @Sensitive(type = SensitiveTypeEnum.CUSTOMER, prefixNoMaskLen = 3, suffixNoMaskLen = 2, symbol = "#")
    private String address;
    @Sensitive(prefixNoMaskLen = 1, suffixNoMaskLen = 2, symbol = "*")
    private String password;
}
